﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WordTemplate1.Methodes
{
    public class Images
    {
        static string[] Extention = new string[] { ".png",".jpg",".gif" };

        /// <summary>
        /// Permet de vérifier si l'extention est une image
        /// </summary>
        /// <param name="extention"></param>
        /// <returns></returns>
        public static bool IsImage(string extention)
        {
            if (Extention.Contains(extention.ToLower()))
                return true;
            else
                return false;
        }
    }
}
